//
//  AXMyGrzlTableViewCell.m
//  AnXin100
//
//  Created by 天质弘耕 on 2018/10/22.
//  Copyright © 2018年 tzhg. All rights reserved.
//

#import "AXMyGrzlMyImageviewCell.h"
#import "UIView+SDAutoLayout.h"
#import "ZXCategories.h"

@implementation AXMyGrzlMyImageviewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self creatView];
        [self setlayout];
    }
    return self;
}

- (void)creatView {
    
    self.label = [[UILabel alloc]init];
    self.label.text = @"我的图像";
    [self.contentView addSubview:self.label];
    
    self.img = [[UIImageView alloc]init];
    self.img.clipsToBounds=YES;//
    self.img.contentMode =UIViewContentModeScaleAspectFill;
    self.img.image = [UIImage imageNamed:@"xy.jpeg"];
    self.img.cornerRadius = 30;
    [self.contentView addSubview:self.img];
    
    
    
    
}

- (void)setlayout {
    
    self.label.sd_layout
    .leftSpaceToView(self.contentView, 10)
    .centerYEqualToView(self.contentView)
    .widthIs(100)
    .heightIs(BTN_HEIGHT);
    
    self.img.sd_layout
    .rightSpaceToView(self.contentView, 10)
    .topSpaceToView(self.contentView, 10)
    .widthIs(60)
    .heightIs(60);
    
    
    
}



@end
